// @ts-nocheck

import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import { setupElementPlus } from '@/plugins/elementPlus'
import * as ElementPlus from 'element-plus'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import 'element-plus/dist/index.css'
import '@/assets/css/index.less'
import '@/assets/css/element.less'



const app = createApp(App)

// 全局组件注册
for (const [key, component] of Object.entries(ElementPlus)) {
    app.component(key, component)
}
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

setupElementPlus(app)


app.use(store)
app.use(router)
app.mount('#app')


